import QtQuick 2.0
import Sailfish.Silica 1.0
import "../config"

Row {
    height: 100
    property string locationTag: null
    property int padding: 10
    property int contentHeight: height-2*padding

    Item {
        height: contentHeight
        width: padding*2
        anchors.verticalCenter: parent.verticalCenter
    }

    Rectangle {
        width: 20
        height: contentHeight
        color: AppColor.themeMode.themeColor
        anchors.verticalCenter: parent.verticalCenter
    }

    Item {
        height: contentHeight
        width: padding
        anchors.verticalCenter: parent.verticalCenter
    }

    Label {
        text: qsTr("当前位置:")
        font.pixelSize: Theme.fontSizeMedium
        color: AppColor.themeMode.primaryColor
        anchors.verticalCenter: parent.verticalCenter
    }

    Label {
        text: locationTag
        font.pixelSize: Theme.fontSizeMedium
        color: AppColor.themeMode.primaryColor
        anchors.verticalCenter: parent.verticalCenter
    }
}
